<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/10 010
 * Time: 15:39
 */
namespace App\Http\Controllers;

use App\Observer\CurrentConditionsDisplay;
use App\Observer\WeatherData;

class WeatherStationController
{

    public function index()
    {
        $weatherData = new WeatherData();

        new CurrentConditionsDisplay($weatherData);

        $weatherData->setMeasurements(80,65,30.4);
        $weatherData->setMeasurements(82,70,29.2);
        $weatherData->setMeasurements(78,90,29.2);

    }

}